
function overallbox_appear()
{
	var _pref;
	_pref =  Components.classes["@mozilla.org/preferences-service;1"].
                    getService(Components.interfaces.nsIPrefService);
	_pref = _pref.getBranch("extensions.picbrowser@iodragon.com.");
	var interfaceVersion=_pref.getCharPref("interfaceVersion");//alert(interfaceVersion);
	if(interfaceVersion=="040")
	{//
		//$('#LocationStartBox').css('display','none'); ;
		//$('#ToolBarBox').css('display','none');
		document.getElementById('LocationStartBox').style.display='none';
		document.getElementById('ToolBarBox').style.display='none';
	}
	else
	{
		//$('#LocationStartBox').css('position','fixed').css("top","0px") ;
		//$('#ToolBarBox').css('position','fixed');
		//$('#toolBox').css('display','none');
		document.getElementById('LocationStartBox').style.position='fixed';
		document.getElementById('LocationStartBox').style.top='0';
		document.getElementById('ToolBarBox').style.position='fixed';
		document.getElementById('toolBox').style.display='none';
	}
	//$('#toolBox').css('display','none');
}
function textbox_active()
{//alert(document.getElementById('piclocation'));
	//$("#piclocation").animate({width: 400}, { duration: 500 });
	document.getElementById('piclocation').width=400;
	//alert(document.getElementById('piclocation').style.length);
	
}
function textbox_passive()
{
	//$("#piclocation").delay(5000).animate({width: 100}, { duration: 500 });
	document.getElementById('piclocation').width=120;
}
function LocationStartBarFold()
{
	if(document.getElementById('LocationStartBar').style.display=='none')
	{
    	//$('#LocationStartBar').show('fast');
		//$('#StartBarFoldImg').attr("src","pic/sa_left_b.png"); 
		document.getElementById('LocationStartBar').style.display='';
		document.getElementById('StartBarFoldImg').src="pic/sa_left_b.png";
	}
	else
	{
		//$('#LocationStartBar').hide("fast");
		//$('#StartBarFoldImg').attr("src","pic/sa_right_b.png");
		document.getElementById('LocationStartBar').style.display='none';
		document.getElementById('StartBarFoldImg').src="pic/sa_right_b.png";
	}
}
function ToolBarFold()
{
	if(document.getElementById('ToolBarBar').style.display=='none')
	{
    	//$('#ToolBarBar').show('fast');
		//$('#ToolBarFoldImg').attr("src","pic/sa_left_b.png"); 
		document.getElementById('ToolBarBar').style.display='';
		document.getElementById('ToolBarFoldImg').src="pic/sa_left_b.png";
	}
	else
	{
		//$('#ToolBarBar').hide("fast");
		//$('#ToolBarFoldImg').attr("src","pic/sa_right_b.png");
		document.getElementById('ToolBarBar').style.display='none';
		document.getElementById('ToolBarFoldImg').src="pic/sa_right_b.png";
	}
}
